package com.membership.cloud.jpa.domain;

import org.springframework.data.jpa.domain.AbstractPersistable;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * Created by hiephn on 2014/07/12.
 */
@MappedSuperclass
public class NameDescPersistable extends AbstractPersistable<Integer> {

    @Column(unique = true, nullable = false, length = 45)
    private String name;
    @Column(nullable = true, length = 256)
    private String desc;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
